package com.mlk.rbac.mapper;

import java.util.List;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mlk.rbac.po.SysRoleAcl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 系统角色和权限mapper
 * @author trek
 *
 */
@Mapper
public interface SysRoleAclMapper extends BaseMapper<SysRoleAcl> {
    /**
     * 批量插入SysRoleAcl对象
     * @param roleAcls
     * @return
     */
	int insertBatch(@Param("lists") List<SysRoleAcl> roleAcls);

    /**
     * 通过一组roleids 查询一组SysRoleAcl对象
     * @param roleIds
     * @return
     */
    List<SysRoleAcl> selectByRoleIds(@Param("lists") List<Integer> roleIds);
}
